<template>
  <div>
    <!--Main内容-->
    <!--<iframe v-if="$store.state.iframe" :src="$store.state.iframeUrl" class="iframe"></iframe>-->
    <iframe v-if="$store.state.iframe" :src="$store.state.iframeUrl" class="_iframe_"></iframe>
  </div>
</template>

<script>
import {defineComponent} from "vue";

export default defineComponent({
  name: 'IfMuKe',
  components: {},
  data() {
    return {};
  },
  mounted() {
    ////////console.log(this.$route.path, ">>>>>>mounted")


    //全局监听-刷新
    this.$event.$on('refresh', (data) => {
      if (this.$route.path == data['path']) {
        ////////console.log(this.$route.path, ">>>执行刷新界面>>>", data)
      }
    })
  },
  methods: {},
});
</script>

<style lang="less" scoped>
._iframe_ {
  position: relative;
  top: 0px;
  width: 100%;
  height: 100%;
}
</style>
